import java.util.Scanner;

public class java04 {

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个数：");
        int n=sc.nextInt();
        int count=0;
        int sum=0;
        for (int i=1;i<=n;i++){
            if (i%7==0){
                count++;
                sum+=i;
            }
        }
        System.out.println("能被 7 整除的整数的个数:"+count);
        System.out.println("能被 7 整除的数的和:"+sum);
    }
}
